package com.example.librarymanagementproject2.model.entity;

import com.example.librarymanagementproject2.model.enums.ReservationStatus;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @ClassName BookReservation
 * @Description 图书预约实体类
 * @Author Kx
 * @Date 2025/9/29 10:39
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BookReservation {
    private Long id; // 预约图书ID
    private Long userId; // 用户ID
    private Long bookId; // 图书ID
    private LocalDateTime reserveDate; // 预约时间
    private Date expireDate; // 过期时间
    private ReservationStatus status; // 预约状态
    private LocalDateTime createTime; // 创建时间
    private LocalDateTime updateTime; // 更新时间
}
